package com.lz.kunkun.messageservice.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lz.kunkun.messageservice.model.ContactPeople;

/**
 * Hello world!
 *
 */
public interface ContactPeopleMapper
{
	
int addPeople(
		@Param("userId")Integer userId, 
        @Param("name")String name, 
        @Param("phoneNumber")String phoneNumber, 
        @Param("img")String img, 
        @Param("type")Integer type,
        @Param("address")String address, 
        @Param("age")Integer age, 
        @Param("sex")Integer sex,
        @Param("createTime")String createTime);

ContactPeople getPeople(@Param("peopleId") Integer peopleId,@Param("userId") Integer userId);

int delPeople(@Param("peopleId") Integer peopleId,@Param("userId") Integer userId);

int updatePeople(@Param("peopleId")Integer peopleId, 
		         @Param("userId")Integer userId, 
		         @Param("name")String name, 
		         @Param("phoneNumber")String phoneNumber, 
		         @Param("img")String img, 
		         @Param("type")Integer type,
		         @Param("address")String address, 
		         @Param("age")Integer age, 
		         @Param("sex")Integer sex);

List<ContactPeople> allPeople(@Param("userId") Integer userId,@Param("keyword") String keyword,@Param("quence") String orderBy);

int getPeopleByPhone(@Param("userId")Integer userId, @Param("phoneNumber")String phoneNumber);

}
